﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SDWXServer.Device
{
    public class SDMqttMsgPublishEventArgs : EventArgs
    {
        public SDMqttMsgPublishEventArgs(object client, string deviceId, string topic, string message, bool dupFlag, byte qosLevel, bool retain)
        {
            this.MqttClient = client;
            this.DeviceId = deviceId;
            this.Topic = topic;
            this.Message = message;
            this.DupFlag = dupFlag;
            this.QosLevel = qosLevel;
            this.Retain = retain;
        }

        public object MqttClient { get; }
        public string DeviceId { get; set; }
        public string Topic { get; }
        public string Message { get; }
        public bool DupFlag { get; set; }
        public byte QosLevel { get; }
        public bool Retain { get; }
    }
}
